<?php

class Admin_Form_Login extends Zend_Form {

    public function init() {
        $this->setName('formLogin');

        $email = new Zend_Form_Element_Text('email');
        $email->setLabel('form_user_email')
                ->setRequired(true)
                ->addValidator('EmailAddress')
                ->addFilter('StripTags')
                ->addFilter('StringTrim');

        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('form_user_password ')
                ->setRequired(true)
                ->addFilter('StripTags')
                ->addFilter('StringTrim');

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton')
                ->setLabel('form_login_connect');

        $elements = array($email, $password, $submit);
        $this->addElements($elements);
    }

}

